// -- 人员详情数据柱状图结构
export var Eoptions = [
  {
    list: {
      width: 300,
      height: 300,
      x: 100,
      y: 100,
    },
    Ctitle: '人员详细数据',
    tooltip: {
      trigger: 'axis-',
      axisPointer: {
        lineStyle: {
          width: 1,
          color: '#019680',
        },
      },
    },
    grid: {
      containLabel: true,
      left: '1%',
      right: '1%', top: '2  %', bottom: 0, containLabel: true
    },
    legend: {
      data: ['sales'],
    },
    xAxis: {
      type: 'category',
      data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
    },
    yAxis: {
      type: 'value',
      // max: 200,
      splitNumber: 5,
    },
    series: [
      {
        data: [3000, 2000, 3333, 5000, 3200, 4200, 3200, 2100, 3000, 5100, 6000, 3200, 4800],
        type: 'bar',
        barMaxWidth: 80,
      },
    ],
  },
  // -- 月督察情况统计
  {
    list: {
      width: 300,
      height: 300,
      x: 10,
      y: 0,
    },
    Ctitle: '月督察情况',
    // --
    tooltip: {
      trigger: 'item',
    },
    legend: {
      bottom: '1%',
      left: 'center',
    },
    series: [
      {
        color: ['#5ab1ef', '#b6a2de', '#67e0e3'],
        name: '月督察情况详情',
        type: 'pie',
        radius: ['40%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: {
          borderRadius: 10,
          borderColor: '#fff',
          borderWidth: 2,
        },
        label: {
          show: false,
          position: 'center',
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '12',
            fontWeight: 'bold',
          },
        },
        labelLine: {
          show: false,
        },
        data: [
          { value: 20, name: '督察次数' },
          { value: 10, name: '待督察次数' },
          { value: 3, name: '逾期未督察次数' },
        ],
        animationType: 'scale',
        animationEasing: 'exponentialInOut',
        animationDelay: function () {
          return Math.random() * 100
        },
      },
    ],
  },
  // -- 月安全检查情况统计
  {
    list: {
      width: 300,
      height: 300,
      x: 10,
      y: 0,
    },
    Ctitle: '月安全检查情况',
    // --
    tooltip: {
      trigger: 'item',
    },
    legend: {
      bottom: '1%',
      left: 'center',
    },
    series: [
      {
        color: ['#5ab1ef', '#b6a2de', '#67e0e3'],
        name: '月安全检查情况详情',
        type: 'pie',
        radius: ['40%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: {
          borderRadius: 10,
          borderColor: '#fff',
          borderWidth: 2,
        },
        label: {
          show: false,
          position: 'center',
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '12',
            fontWeight: 'bold',
          },
        },
        labelLine: {
          show: false,
        },
        data: [
          { value: 34, name: '安全检查次数' },
          { value: 12, name: '发现问题' },
        ],
        animationType: 'scale',
        animationEasing: 'exponentialInOut',
        animationDelay: function () {
          return Math.random() * 100
        },
      },
    ],
  },
  // -- 法律法规
  {
    list: {
      width: 300,
      height: 300,
      x: 10,
      y: 0,
    },
    Ctitle: '法律法规',
    // --
    tooltip: {
      trigger: 'item',
    },
    legend: {
      bottom: '1%',
      left: 'center',
    },
    series: [
      {
        color: ['#5ab1ef', '#b6a2de', '#67e0e3', '#2ec7c9'],
        name: '法律法规',
        type: 'pie',
        radius: ['40%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: {
          borderRadius: 10,
          borderColor: '#fff',
          borderWidth: 2,
        },
        label: {
          show: false,
          position: 'center',
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '12',
            fontWeight: 'bold',
          },
        },
        labelLine: {
          show: false,
        },
        data: [],
        animationType: 'scale',
        animationEasing: 'exponentialInOut',
        animationDelay: function () {
          return Math.random() * 100
        },
      },
    ],
  },
]
